package com.ruoyi.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public class UserHealthData {
    private Long userId;
    private LocalDateTime time;
    private Integer heartRate;          // 心率
    private Integer bloodPressureHigh;  // 收缩压
    private Integer bloodPressureLow;    // 舒张压
    private Integer bloodOxygen;        // 血氧
    private BigDecimal temperature;     // 体温
    private BigDecimal bloodGlucose;    // 血糖

    // 完整getter/setter
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public Integer getHeartRate() {
        return heartRate;
    }

    public void setHeartRate(Integer heartRate) {
        this.heartRate = heartRate;
    }

    public Integer getBloodPressureHigh() {
        return bloodPressureHigh;
    }

    public void setBloodPressureHigh(Integer bloodPressureHigh) {
        this.bloodPressureHigh = bloodPressureHigh;
    }

    public Integer getBloodPressureLow() {
        return bloodPressureLow;
    }

    public void setBloodPressureLow(Integer bloodPressureLow) {
        this.bloodPressureLow = bloodPressureLow;
    }

    public Integer getBloodOxygen() {
        return bloodOxygen;
    }

    public void setBloodOxygen(Integer bloodOxygen) {
        this.bloodOxygen = bloodOxygen;
    }

    public BigDecimal getTemperature() {
        return temperature;
    }

    public void setTemperature(BigDecimal temperature) {
        this.temperature = temperature;
    }

    public BigDecimal getBloodGlucose() {
        return bloodGlucose;
    }

    public void setBloodGlucose(BigDecimal bloodGlucose) {
        this.bloodGlucose = bloodGlucose;
    }

    // 可选：toString()方法（调试用）
    @Override
    public String toString() {
        return "UserHealthData{" +
                "userId=" + userId +
                ", time=" + time +
                ", heartRate=" + heartRate +
                ", bloodPressureHigh=" + bloodPressureHigh +
                ", bloodPressureLow=" + bloodPressureLow +
                ", bloodOxygen=" + bloodOxygen +
                ", temperature=" + temperature +
                ", bloodGlucose=" + bloodGlucose +
                '}';
    }
}
